﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaskBasedSchedule.Core
{
    public class DatabaseOperationException : Exception
    {
        private static readonly string NORMAL_EXCEPTION_MSG = "There is a database error occured during execution.\nCheck InnerException for more infomation.";

        public DatabaseOperationException() : this(NORMAL_EXCEPTION_MSG, null)
        { }

        public DatabaseOperationException(Exception innerException): this(NORMAL_EXCEPTION_MSG, innerException)
        { }

        public DatabaseOperationException(string message) : this(message, null)
        { }

        public DatabaseOperationException(string message, Exception innerException) : base(message, innerException)
        { }

    }
}